package com.ruoyi.oss.domain.bo;

import com.ruoyi.oss.ienum.OssType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@Accessors(chain = true)
public class UploadResult implements Serializable {

    private static final long serialVersionUID = 2438166787791267525L;

    private final OssType ossType;
    /**
     * 文件路径
     */
    private String url;
    /**
     * 文件名
     */
    private String fileName;
    /**
     * 桶的名称
     */
    private String bucketName;
    /**
     * oss中文件路径
     */
    private String ossPath;

    public UploadResult(OssType ossType) {
        this.ossType = ossType;
    }

}

